const express = require('express')
const cors = require('cors')
const app = express()
const router = require('./router/index')
app.use(express.json())
app.use(cors())
app.use('/api',router)
app.use(express.static('public'))
const PORT = process.env.PORT | 2022

app.listen(PORT,()=>{
    console.log(`Server is running at http://localhost:${PORT}`);
})